package com.cykj.controller;

import com.cykj.dto.ResponseDTO;
import com.cykj.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/admin")
@RestController
public class AdminController {

    @Autowired
    private AdminService adminService;




    @RequestMapping("/list")
    public ResponseDTO login() {
        return adminService.list();
    }

}
